import request from '@/utils/request'
// 预警设置
export function datagrid(params) {
  return request({
    url: 'earlyWarnController.do?datagrid',
    method: 'get',
    params
  })
}
export function doUpdate(params) {
  return request({
    url: 'earlyWarnController.do?doUpdate',
    method: 'post',
    params
  })
}
// 人员配置
export function perdatagrid(params) {
  return request({
    url: 'personnelController.do?datagrid',
    method: 'get',
    params
  })
}
export function doAdd(params) {
  return request({
    url: 'personnelController.do?doAdd',
    method: 'POST',
    params
  })
}
export function perdoUpdate(params) {
  return request({
    url: 'personnelController.do?doUpdate',
    method: 'POST',
    params
  })
}
export function doDel(params) {
  return request({
    url: 'personnelController.do?doDel',
    method: 'POST',
    params
  })
}
export function doBatchDel(params) {
  return request({
    url: 'personnelController.do?doBatchDel',
    method: 'POST',
    params
  })
}
// 表格导出
export function exportXls(params) {
  return request({
    url: 'buvAreaDsgController.do?exportXls',
    method: 'get',
    responseType: 'blob',
    params
  })
}

// 获取交易对手类型下拉框的枚举值
export function getTxnOppoType(params) {
  return request({
    url: 'buvInvestorCounterpartyController.do?TxnOppoType',
    method: 'get',
    params
  })
}
